<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>



            <h3>Relatório de Aluno Cadastrado</h3>

            <div id="stylized" class="myform">
                <div class="relato">



                    <table>

                        <tr>
                            <th>Nome:</th>
                            <td>#{AlunoController.alunoAux.nome}</td>
                        </tr>
                        <tr>
                            <th>Identificador:</th>
                            <td>#{AlunoController.alunoAux.identificador}</td>
                        </tr>


                    </table>
                </div>
                <br />

                <h3>Turmas do Aluno</h3>


                <p:dataTable var="turmaTemp" value="#{AlunoController.turmasAluno}" emptyMessage="Nenhuma Turma até agora" paginator="false" >

                    <p:column sortBy="#{turmaTemp.nome}">
                        <f:facet name="header">
                            <h:outputText value="Turma" />
                        </f:facet>
                        <h:commandLink action="#{TurmaController.load}" value="#{turmaTemp.nome}" />
                    </p:column>

                    <p:column sortBy="#{turmaTemp.disciplinaProfessor.disciplina.nome}">
                        <f:facet name="header">
                            <h:outputText value="Disciplina" />
                        </f:facet>
                        <h:outputText value="#{turmaTemp.disciplinaProfessor.disciplina.nome}" />
                    </p:column>

                </p:dataTable>




                <br />
                <h:commandButton styleClass="button" action="#{PageManager.setPageAlunoCad}" value="Novo" id="novo" />
                <h:commandButton styleClass="button" action="#{AlunoController.editButton}" value="Editar" id="editar" />
                <h:commandButton styleClass="button" action="#{AlunoController.destroyButton}" value="Excluir" id="excluir" />
                <h:commandButton styleClass="button" action="#{MatriculadoController.setModalMatriculaCad}" value="Matricular" id="matricular" />



            </div>

        </ui:composition>

    </body>
</html>
